package tw.twandroidproj.app;

import android.app.Application;
import android.test.ApplicationTestCase;
import tw.twandroidproj.app.network.NetParams;

import java.util.HashMap;
import java.util.Map;

/**
 * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
 */
public class ApplicationTest extends ApplicationTestCase<Application> {
    public ApplicationTest() {
        super(Application.class);
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();

        Map<String, String> map = new HashMap<String, String>();
        map.put("name", "frezc");
        String url = NetParams.structureQueryUrl(NetParams.USER_URL, map);
        assertEquals(NetParams.USER_URL+"?name=frezc", url);
    }
}